package kaizone.songmaya.smartns.comm.config;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@ConfigurationProperties(prefix = "app")
@Configuration
public class AppConfig {
    private Common common;

    public Common getCommon() {
        return common;
    }

    public void setCommon(Common common) {
        this.common = common;
    }

    public static class Common {
        private String loanDir;
        private Boolean authDisable;

        public String getLoanDir() {
            return loanDir;
        }

        public void setLoanDir(String loanDir) {
            this.loanDir = loanDir;
        }

        public Boolean getAuthDisable() {
            return authDisable;
        }

        public void setAuthDisable(Boolean authDisable) {
            this.authDisable = authDisable;
        }
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
